#include "Stack.h"

void bit::StackInit(ST* ps, int N) {
	ps->a = (int*)malloc(sizeof(int) * N);
	ps->top = 0;
	ps->capacity = N;
}

void bit::Stackpush(ST* ps, int x) {
	ps->a[ps->top++] = x;
}